package com.sharer.last.mapper;

import com.github.yulichang.base.MPJBaseMapper;
import com.sharer.last.model.po.BlogPO;
import com.sharer.last.model.vo.category.CategoryBlogCountVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 博客文章持久层接口
 *
 * @ClassName BlogMapper
 * @Author wangjin
 * @Date 2023/5/5 20:54
 * @Description
 * @Version 1.0
 */
@Mapper
@Repository
public interface BlogMapper extends MPJBaseMapper<BlogPO> {
    /**
     * 统计分类下博客数量
     *
     * @return
     */
    List<CategoryBlogCountVO> getCategoryBlogCountList();
}
